var refundreason_obj={
		refundreason_apply:function(){
			var type = "";
			$(".refundreason li p").click(function(){
				var wmx = $(this).parent().find(".txt").css("display");
				
				type = $(this).attr("type");
				
				if(wmx == 'none')
				{
					$(".refundreason li p").removeClass("active");
					$(".refundreason li .txt").slideUp();
					$(this).addClass("active");
					$(this).parent().find(".txt").slideDown();
				}else
				{
					return;
				}
			});
			
			$(".section2 a[href=#]").click(function(){
				if(global_obj.check_form($('*[notnull]'))){return false};
				$(this).attr('disabled', true);
				
				$.post("?s=/Vip/refundreason",$("#form_refund").serialize()+"&type="+type,function(data){
					
					
					if(data.ret == 1){
						alert(data.msg);
						window.location.href = "?s=/Vip/index";
					}else{
						alert(data.msg);
					}
				});
			});
			
			
		}
}